home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204inc_i.lzh / rexx / errors.i next >
Text File  |  1991-03-14  |  3KB  |  77 lines

  1.      IFND      REXX_ERRORS_I
  2. REXX_ERRORS_I SET      1
  3. **
  4. **    $Filename: rexx/errors.i $
  5. **    $Release: 2.04 $
  6. **    $Revision: 1.4 $
  7. **    $Date: 90/07/12 $
  8. **
  9. **    Definitions for ARexx error codes
  10. **
  11. **    (C) Copyright 1986,1987,1988,1989,1990 William S. Hawes.
  12. **        All Rights Reserved
  13. **
  14.  
  15. ERRC_MSG    EQU   0            ; error code offset
  16. ERR10_001   EQU   (ERRC_MSG+1)        ; program not found
  17. ERR10_002   EQU   (ERRC_MSG+2)        ; execution halted
  18. ERR10_003   EQU   (ERRC_MSG+3)        ; no memory available
  19.                     ; unassigned
  20. ERR10_005   EQU   (ERRC_MSG+5)        ; unmatched quote
  21. ERR10_006   EQU   (ERRC_MSG+6)        ; unterminated comment
  22.                     ; unassigned
  23. ERR10_008   EQU   (ERRC_MSG+8)        ; unrecognized token
  24. ERR10_009   EQU   (ERRC_MSG+9)        ; symbol or string too long
  25.  
  26. ERR10_010   EQU   (ERRC_MSG+10)     ; invalid message packet
  27. ERR10_011   EQU   (ERRC_MSG+11)     ; command string error
  28. ERR10_012   EQU   (ERRC_MSG+12)     ; error return from function
  29. ERR10_013   EQU   (ERRC_MSG+13)     ; host environment not found
  30. ERR10_014   EQU   (ERRC_MSG+14)     ; required library not available
  31. ERR10_015   EQU   (ERRC_MSG+15)     ; function not found
  32. ERR10_016   EQU   (ERRC_MSG+16)     ; function did not return value
  33. ERR10_017   EQU   (ERRC_MSG+17)     ; wrong number of arguments
  34. ERR10_018   EQU   (ERRC_MSG+18)     ; invalid argument to function
  35. ERR10_019   EQU   (ERRC_MSG+19)     ; invalid PROCEDURE instruction
  36.  
  37. ERR10_020   EQU   (ERRC_MSG+20)     ; unexpected THEN/ELSE
  38. ERR10_021   EQU   (ERRC_MSG+21)     ; unexpected WHEN/OTHERWISE
  39. ERR10_022   EQU   (ERRC_MSG+22)     ; unexpected BREAK, LEAVE or ITERATE
  40. ERR10_023   EQU   (ERRC_MSG+23)     ; invalid statement in SELECT
  41. ERR10_024   EQU   (ERRC_MSG+24)     ; missing or multiple THEN clauses
  42. ERR10_025   EQU   (ERRC_MSG+25)     ; missing OTHERWISE
  43. ERR10_026   EQU   (ERRC_MSG+26)     ; missing or unexpected END
  44. ERR10_027   EQU   (ERRC_MSG+27)     ; symbol mismatch on END/LEAVE/ITERATE
  45. ERR10_028   EQU   (ERRC_MSG+28)     ; invalid 'DO' syntax
  46. ERR10_029   EQU   (ERRC_MSG+29)     ; incomplete DO/IF/SELECT
  47.  
  48. ERR10_030   EQU   (ERRC_MSG+30)     ; label not found
  49. ERR10_031   EQU   (ERRC_MSG+31)     ; symbol expected
  50. ERR10_032   EQU   (ERRC_MSG+32)     ; string or symbol expected
  51. ERR10_033   EQU   (ERRC_MSG+33)     ; invalid sub-keyword
  52. ERR10_034   EQU   (ERRC_MSG+34)     ; required keyword missing
  53. ERR10_035   EQU   (ERRC_MSG+35)     ; extraneous characters in clause
  54. ERR10_036   EQU   (ERRC_MSG+36)     ; sub-keyword conflict
  55. ERR10_037   EQU   (ERRC_MSG+37)     ; invalid template
  56.                     ; unassigned
  57. ERR10_039   EQU   (ERRC_MSG+39)     ; uninitialized variable
  58.  
  59. ERR10_040   EQU   (ERRC_MSG+40)     ; invalid variable name
  60. ERR10_041   EQU   (ERRC_MSG+41)     ; invalid expression
  61. ERR10_042   EQU   (ERRC_MSG+42)     ; unbalanced parentheses
  62. ERR10_043   EQU   (ERRC_MSG+43)     ; nesting level exceeded
  63. ERR10_044   EQU   (ERRC_MSG+44)     ; invalid expression result
  64. ERR10_045   EQU   (ERRC_MSG+45)     ; expression required
  65. ERR10_046   EQU   (ERRC_MSG+46)     ; boolean value not 0 or 1
  66. ERR10_047   EQU   (ERRC_MSG+47)     ; arithmetic conversion error
  67. ERR10_048   EQU   (ERRC_MSG+48)     ; invalid operand
  68.  
  69. * Return Codes for general use ...
  70. RC_FAIL     EQU   -1            ; something's wrong
  71. RC_OK       EQU   0                 ; success
  72. RC_WARN     EQU   5                 ; A warning only
  73. RC_ERROR    EQU   10                ; Something wrong
  74. RC_FATAL    EQU   20                ; Complete or severe failure
  75.  
  76.          ENDC
  77.